package com.kgc.scd.service;

import com.kgc.scd.util.RequestResult;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Set;

/**
 * @program: com.kgc.scd.service
 * @author: HarryXzy
 * @create: 2022-06-15 22:50
 * @description:
 **/
@FeignClient(value = "blmall-server-wzy-8106")
public interface IndexSearchFeign {

    /**
    * @author: HarryXzy
    * @date: 2022/6/15 22:56
    * @return: com.kgc.scd.util.RequestResult<java.util.Set<java.lang.Object>>
    * @description: 热词搜索
    */
    @GetMapping("/hotSearch")
    RequestResult<Set<Object>> hotSearch(@RequestParam("hotkeyValue") String hotkeyValue);

    /***
    * @author: HarryXzy
    * @date: 2022/6/15 23:00
    * @return: com.kgc.scd.util.RequestResult<java.util.List<java.lang.Object>>
    * @description: 历史搜索记录
    */
    @GetMapping("/Search")
    RequestResult<List<Object>> Search(@RequestParam("userId") String userId, @RequestParam("searchCon") String searchCon);

}
